﻿@model CloudFranceTriple.Models.EventSet
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.EventEditTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.EventEditTitle</h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>EventSet</legend>

                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(model => model.AuthorEvent)

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventTitle
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.TitleEvent)
                    @Html.ValidationMessageFor(model => model.TitleEvent)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventCategoryLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("EventCategory_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.EventCategory_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventDescription
                </div>
                <div class="editor-field">
                    <textarea id="DescriptionEvent" name="DescriptionEvent">
                        @Html.DisplayTextFor(model => model.DescriptionEvent)
                    </textarea>
                    @Html.ValidationMessageFor(model => model.DescriptionEvent)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventAuthor
                </div>
                <div class="editor-field">
                    @Html.DisplayFor(model => model.AuthorEvent)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventDateStart
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DateStartEvent, "TemplateUserDateTime")
                    @Html.ValidationMessageFor(model => model.DateStartEvent)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventDateEnd
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DateEndEvent, "TemplateUserDateTime")
                    @Html.ValidationMessageFor(model => model.DateEndEvent)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.EventAllDay
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.AllDayEvent)
                    @Html.ValidationMessageFor(model => model.AllDayEvent)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonSave" />
                </p>
            </fieldset>
        }
        @Html.Partial("_EventBackToList")
    </section>
</div>
<script type="text/javascript" src="http://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">tinymce.init({ selector: "textarea#DescriptionEvent" });</script>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
